package com.honyelchak.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.honyelchak.shortlink.admin.dao.entity.UserDO;
import com.honyelchak.shortlink.admin.dto.req.UserLoginDTO;
import com.honyelchak.shortlink.admin.dto.req.UserRegisterReqDTO;
import com.honyelchak.shortlink.admin.dto.req.UserUpdateReqDTO;
import com.honyelchak.shortlink.admin.dto.resp.UserActualRespDTO;
import com.honyelchak.shortlink.admin.dto.resp.UserInfoRespDTO;
import com.honyelchak.shortlink.admin.dto.resp.UserRespDTO;

/**
 * 用户接口层
 */
public interface UserService extends IService<UserDO> {

    UserRespDTO getUserByUsername(String username);
    UserActualRespDTO getActualUserByUsername(String username);


    Boolean hasUsername(String username);

    void register(UserRegisterReqDTO requestParam);

    void update(UserUpdateReqDTO userUpdateReqDTO);

    UserInfoRespDTO login(UserLoginDTO userLoginDTO);

    Boolean isLogin(String username, String token);

    void logout(String username, String token);
}
